import org.apache.hadoop.hbase.client.Connection;

import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;

public class APIDemo1 {
public static Connection connection = null;
public static Statement statement = null;
static {
    try {
        Class.forName("org.apache.phoenix.jdbc.PhoenixDriver");
        String url = "jdbc:phoenix:master:2181/hbase";
        connection = (Connection) DriverManager.getConnection(url);
    } catch (ClassNotFoundException | SQLException e) {
        e.printStackTrace();
    }



}
}
